const app = getApp();

export const axios = (
  url = "",
  params = {},
  method = "GET",
  isLoading = false,
  isErrorToast = true
) => app.request({
    url,
    data: params,
    method,
    isLoading,
    isErrorToast,
  });
